package com.dragons.dragonsvf.entities;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

/**
 * @author dragons
 * @version 1.0.0
 * @description: 订单数据库映射类
 * @date 2025/6/21 23:44
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Getter
@Setter
@TableName("order_info")
public class Order {

    @TableField(value = "id", condition = SqlCondition.EQUAL)
    private String id; // 唯一的32位ID

    @TableField(value = "order_name", condition = SqlCondition.LIKE)
    private String order_name; // 订单名称

    @TableField(value = "order_good_id", condition = SqlCondition.EQUAL)
    private String order_good_id; // 订单商品ID

    @TableField(value = "order_desc", condition = SqlCondition.LIKE)
    private String order_desc; // 订单描述

    @TableField(value = "order_price", condition = SqlCondition.EQUAL)
    private Double order_price; // 订单单价

    @TableField(value = "order_sum", condition = SqlCondition.EQUAL)
    private Double order_sum; // 订单总价

    @TableField(value = "order_total", condition = SqlCondition.EQUAL)
    private Integer order_total; // 订单下单个数

    @TableField(value = "order_img_url", condition = SqlCondition.LIKE)
    private String order_img_url; // 订单图片链接

    @TableField(value = "order_type", condition = SqlCondition.EQUAL)
    private Integer order_type; // 订单处理类型：0待处理/1处理中/2处理完成

    @TableField(value = "order_buy_user_id", condition = SqlCondition.EQUAL)
    private String order_buy_user_id; // 订单下单人ID

    @TableField(value = "order_buy_user", condition = SqlCondition.LIKE)
    private String order_buy_user; // 订单下单人 账号

    @TableField(value = "order_buy_user_tel", condition = SqlCondition.EQUAL)
    private String order_buy_user_tel; // 订单下单人电话

    @TableField(value = "order_other_info", condition = SqlCondition.LIKE)
    private String order_other_info; // 订单附加信息

    @TableField(value = "order_command", condition = SqlCondition.EQUAL)
    private String order_command; // 订单口令

    @TableField(value = "order_create_tm")
    private Timestamp order_create_tm; // 订单创建时间

    @TableField(value = "order_operate_tm")
    private Timestamp order_operate_tm; // 订单处理完成时间
}
